<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>示例3</title>
    <script src="jquery.js"></script>
    <script>
        function show1(){
            $(".animationList").prepend("<li>小魔仙</li>")
        }
        function show2(){
            $(".animationList").append("<li>大头儿子</li>")
        }
        function show3(){
            $(".animationList").before("<div>前</div>")
        }
        function show4(){
            $(".animationList").after("<div>后</div>")
        }
    </script>
</head>
<body>
    <h2>热门动画排行</h2>
    <button onclick="show1()">前插入</button>
    <button onclick="show2()">后插入</button>
    <button onclick="show3()">前外插入</button>
    <button onclick="show4()">后外插入</button>
    <ul class="animationList">
        <li>名侦探柯南</li>
        <li>阿拉蕾</li>
        <li>海贼王</li>
    </ul>
</body>
</html>